#pragma once
#include "uio.h"
#include "Pressed.hpp"
class Game
{
private:
    Pressed64 placed;
    Pressed64 visitedMid;
    Pressed8 visitedTop;
    Pressed8 visitedLeft;
    Pressed8 visitedBottom;
    Pressed8 visitedRight;
    PEN pen;
    SHORT originalY;
    COORD curPos;
    void moveCur(COORD abs);
    void moveCurTo(COORD abs);
    void onclick();
    void oncheck();
    void visit(COORD pos);
    bool ended;
public:
    bool end_of_game();
    Game(PEN);
    Game(PEN, unsigned long);
    COORD go(COORD, COORD);
    void StartGame();
    void onkeydown(int ch);
};

